<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>deploy</title>

    <link rel="shortcut icon" href="favicon.ico">
    <link href="css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
    <link href="css/animate.min.css" rel="stylesheet">
    <link href="css/style.min.css?v=4.0.0" rel="stylesheet">
    <link href="css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link rel="stylesheet" href="css/plugins/selectpicker/bootstrap-select.min.css">
    <base target="_blank">

</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox float-e-margins">
        <div class="ibox-content">
            <div class="row row-lg">
                <div class="col-sm-12">
                    <h4 class="example-title">部署信息</h4>
                    <!--<div class="ibox-title">-->
                    <!--<div class="ibox-tools">-->

                    <!--</div>-->
                    <!--</div>-->
                    <div class="row m-b-sm m-t-sm">
                        <div class="col-md-1">
                            <button type="button" id="refreshbutton" class="btn btn-white btn-sm"><i
                                    class="fa fa-refresh"></i> 刷新
                            </button>
                        </div>
                        <div class="col-md-11">
                            <div class="input-group">
                                <input type="text" placeholder="请输入链码名称" class="input-sm form-control"> <span
                                    class="input-group-btn">
                                        <button type="button" class="btn btn-sm btn-primary"> 搜索</button> </span>
                            </div>
                        </div>
                    </div>
                    <!--<div class="row m-b-sm m-t-sm">-->
                    <div class="col-md-4">
                        <!--<button class="btn btn-info btn-sm" data-toggle="modal"-->
                        <!--data-target="#addAccessPointModal">创建链码-->
                        <!--</button>-->
                        <button type="button" id="newDeploy" class="btn btn-primary btn-sm J_menuItem" href="/deploy/new">新建部署
                        </button>
                        <!--<button type="button" id="disableButton" class="btn btn-danger btn-sm">禁用-->
                        <!--</button>-->
                    </div>
                    <!--</div>-->
                    <div class="example">
                        <table id="exampleTableFromData" data-mobile-responsive="true">
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="modal fade" id="executeModal" tabindex="-1" role="document"
     aria-labelledby="executeModalLabel"
     aria-hidden="true">
    <div class="modal-dialog" role="document">
        <div class="modal-content modal-custom">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="executeModalLabel">
                    链码详情信息
                </h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" id="executechaincode_form_data">
                    <div class="col-md-6">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">ID</label>
                            <div class="col-sm-9">
                                <input type="text" id="chaincodeId" name="chaincodeId" class="form-control"
                                       readonly/>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">名称</label>
                            <div class="col-sm-9">
                                <input type="text" id="chaincodeName" name="chaincodeName" class="form-control"
                                       readonly/>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">版本</label>
                            <div class="col-sm-9">
                                <input type="text" id="chaincodeVersion" name="chaincodeVersion" class="form-control"
                                       readonly/>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">channel</label>
                            <div class="col-sm-9">
                                <input type="text" id="channelName" name="channelName" class="form-control"
                                       readonly/>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-12">
                        <div class="form-group">
                            <label class="col-md-3 control-label">路径</label>
                            <div class="col-md-9">
                                <input type="text" id="chaincodePath" name="chaincodePath" class="form-control"
                                       readonly/>
                            </div>
                        </div>
                    </div>
                    <!--<div class="col-md-12">-->
                    <div class="form-group">
                        <label class="col-sm-5 control-label">请求类型</label>
                        <div class="col-sm-7">
                            <select id="requestType" name="requestType" class="selectpicker" value="query"
                                    data-style="btn-success">
                                <option value="query">query</option>
                                <option value="invoke">invoke</option>
                            </select>
                        </div>
                    </div>
                    <!--</div>-->
                    <div class="col-md-12">
                        <div class="form-group">
                            <label class="col-sm-5 control-label">执行方法</label>
                            <div class="col-sm-7">
                                <input type="text" id="fcn" name="fcn" class="form-control"/>
                            </div>
                        </div>
                    </div>
                    <label class="control-label">参数(多个参数以 '&' 分割)</label>
                    <textarea id="args" name="args" class="form-control" rows="3"></textarea>
                    <div class="center-block">
                        <p>
                            <button id="execute" type="button" class="btn btn-info btn-lg" onclick="executeChaincode()">
                                执行
                            </button>
                        </p>
                    </div>

                    <!--<div class="ibox-content">-->
                    <!--<button type="button" class="btn btn-info" onclick="saveApiPackage()">-->
                    <!--执行-->
                    <!--</button>-->
                    <!--&lt;!&ndash;<button type="button" id="batchAddButton" class="btn btn-primary">添加API</button>&ndash;&gt;-->
                    <!--&lt;!&ndash;<button type="button" id="batchApisButton" class="btn btn-danger">删除已绑定API</button>&ndash;&gt;-->
                    <!--</div>-->
                    <label class="control-label">结果</label>
                    <textarea id="result" name="result" class="form-control" rows="3"></textarea>
                    <!--<button type="button" id="batchAddButton" class="btn btn-primary">添加API</button>-->
                    <!--<button type="button" id="batchApisButton" class="btn btn-danger">删除已绑定API</button>-->

                    <!--<div class="col-md-12">-->
                    <!--<div class="panel panel-default">-->
                    <!--<div class="panel-heading">已关联的API列表</div>-->
                    <!--<div class="panel-body">-->
                    <!--<div class="col-md-2">-->
                    <!--<button type="button" id="batchDeleteApisButton" class="btn btn-danger">解绑API</button>-->
                    <!--</div>-->
                    <!--<div class="example">-->
                    <!--<table id="apisTable" data-mobile-responsive="true">-->
                    <!--</table>-->
                    <!--</div>-->
                    <!--</div>-->
                    <!--</div>-->
                    <!--</div>-->
                    <!--<div class="col-md-12">-->
                    <!--<div class="panel panel-default">-->
                    <!--<div class="panel-heading">新增的API列表</div>-->
                    <!--<div class="panel-body">-->
                    <!--<div class="col-md-2">-->
                    <!--<button type="button" id="batchAddApisButton" class="btn btn-primary">添加API</button>-->
                    <!--</div>-->
                    <!--<div class="example">-->
                    <!--<table id="addApisTable" data-mobile-responsive="true">-->
                    <!--</table>-->
                    <!--</div>-->
                    <!--</div>-->
                    <!--</div>-->
                    <!--</div>-->
                </form>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                    </button>
                </div>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
    <!--</form>-->
</div>
<!-- 模态框示例（Modal） -->

<div class="modal fade" id="addAccessPointModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
     aria-hidden="true">
    <!--<form method="post" action="" class="form-horizontal" role="form" id="form_data" onsubmit="check_form()"-->
    <!--style="margin: 20px;">-->
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel">
                    接入点信息
                </h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" id="form_data">
                    <div class="form-group">
                        <label for="accesspoint_username" class="col-sm-3 control-label">用户名</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="accesspoint_username"
                                   name="accesspoint_username" value=""
                                   placeholder="请输入用户名">
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="accesspoint_nickname" class="col-sm-3 control-label">昵 称</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" name="accesspoint_nickname" value=""
                                   id="accesspoint_nickname"
                                   placeholder="请输入昵称">
                        </div>
                    </div>

                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                        </button>
                        <button type="button" class="btn btn-primary" onclick="check_form()">
                            提交
                        </button>
                        <span id="tip"> </span>
                    </div>
                </form>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
    <!--</form>-->
</div>

<script src="js/jquery.min.js?v=2.1.4"></script>
<script src="js/bootstrap.min.js?v=3.3.5"></script>
<script src="js/content.min.js?v=1.0.0"></script>
<script src="js/plugins/selectpicker/bootstrap-select.min.js"></script>
<script src="js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
<script src="js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
<script src="js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
<script src="js/plugins/toastr/toastr.min.js"></script>
<script src="js/plugins/validate/jquery.validate.min.js"></script>
<script src="js/plugins/validate/messages_zh.min.js"></script>
<script src="js/demo/bootstrap-table-demo.min.js"></script>
<script src="js/app/chaincode.js"></script>
<!--<script src="js/application/accesspoint-validate.js"></script>-->
<script src="js/plugins/sweetalert/sweetalert.min.js"></script>
<script src="js/plugins/selectpicker/i18n/defaults-zh_CN.min.js"></script>
</body>
</html>